


export default class Constant {
    reqData = [{
        rqUrl: '/platform/templet/querypage.do',
        rqJson: `{\n  \"pagecode\": \"60092010nccloud\",\n  \"appcode\": \"60092010\"\n}`,
        rqCode: 'template'
    }, {
        rqUrl: '/platform/templet/querypage.do',
        rqJson: `{\n  \"pagecode\": \"60092010cb\",\n  \"appcode\": \"60092010\"\n}`,
        rqCode: 'org_situation'
    }, {
        rqUrl: '/platform/templet/querypage.do',
        rqJson: `{\n  \"pagecode\": \"60092010batch\",\n  \"appcode\": \"60092010\"\n}`,
        rqCode: 'batch_add'
    }, {
        rqUrl: '/platform/appregister/queryallbtns.do',
        rqJson: `{\n  \"pagecode\": \"60092010nccloud\",\n  \"appcode\": \"60092010\"\n}`,
        rqCode: 'button'
    }, {
        rqUrl: '/platform/appregister/queryappcontext.do',
        rqJson: `{\n  \"appcode\": \"60092010\"}`,
        rqCode: 'context'
    }];

    showReqData = (appConfig) => {
        const pagecode1 = appConfig.appcode.substring(0,8)
        let reqData = [{
            rqUrl: '/platform/templet/querypage.do',
            rqJson: `{\n  \"pagecode\": \"${pagecode1}nccloud\",\n  \"appcode\": \"${appConfig.appcode}\"\n}`,
            rqCode: 'template'
        }, {
            rqUrl: '/platform/templet/querypage.do',
            rqJson: `{\n  \"pagecode\": \"${pagecode1}cb\",\n  \"appcode\": \"${appConfig.appcode}\"\n}`,
            rqCode: 'org_situation'
        }, {
            rqUrl: '/platform/templet/querypage.do',
            rqJson: `{\n  \"pagecode\": \"${pagecode1}batch\",\n  \"appcode\": \"${appConfig.appcode}\"\n}`,
            rqCode: 'batch_add'
        }, {
            rqUrl: '/platform/appregister/queryallbtns.do',
            rqJson: `{\n  \"pagecode\": \"${pagecode1}nccloud\",\n  \"appcode\": \"${appConfig.appcode}\"\n}`,
            rqCode: 'button'
        }, {
            rqUrl: '/platform/appregister/queryappcontext.do',
            rqJson: `{\n  \"appcode\": \"${appConfig.appcode}\"}`,
            rqCode: 'context'
        }];

        return reqData;
    }
};